package net.tngou.c4j.tag;

import java.util.ArrayList;
import java.util.List;

import net.tngou.c4j.ik.IKUtil;
import net.tngou.c4j.ik.WordFren;
import net.tngou.crawler.pojo.Data;
import net.tngou.crawler.pojo.Tag;

/**
 * 标签
 * @author tngou@tngou.net
 *
 */
public class Mark {

	
	public static List<String> Tags(Data data) {
		List<String> list = new ArrayList<>();
		List<WordFren> ws = IKUtil.WordsFrem(data.getValue(), 100);
		for (WordFren wordFren : ws) {
			if(wordFren.getFilter()==1)
			{
				list.add(wordFren.getWord());
			}else if(wordFren.getCount()>=5)
			{
				list.add(wordFren.getWord());
			}
			
		}
		return list;
		
	}
	
}
